<template>
    <div class="app-container home" style="text-align: right">
        <div class="content">
            <div>
                <div><img src="@/assets/downApp/agentLogo.png" alt="" class="logoMax" /></div>
                <!-- <img src="@/assets/downApp/downTitle.png" alt="" class="titImg" /> -->
            </div>
            <div class="btn">
                <img src="@/assets/downApp/btn.png" alt="" />
                <div @click="downApp">下载APP</div>
            </div>
            <div class="footer">
                <img class="image" src="@/assets/downApp/agentL.png" />
                <div class="l">
                    <div class="top" style="letter-spacing: 10px; font-size: 10px">众成智付展业端</div>
                    <!-- <div class="center"></div> -->
                    <!-- <div class="bottom" style="font-size: 10px">河南卓付通信息技术有限公司</div> -->
                </div>
            </div>
        </div>
        <div class="wx" v-if="isWx">
            <wxPop></wxPop>
        </div>
    </div>
</template>

<script setup name="agent">
import wxPop from '@/components/wx-pop.vue'

import { isWeixinBrowser, judgeClient } from '../../utils/utils'
import { showFailToast } from 'vant'
const isWx = ref(isWeixinBrowser())

const downApp = () => {
    if (judgeClient() === 'IOS') {
        // window.open('https://dn.lumawb.com/SuJVll', '_blank')
    } else {
        window.open('http://open.lianzhongbao.cn:28082/static/com.meitianpay.agent.apk', '_blank')
    }
}
</script>

<style scoped lang="scss">
.bg {
    width: 100%;
}
.content {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0;
    height: 100vh;
    padding-top: 40px;
    width: 100%;
    overflow: hidden;
    background: url('@/assets/downApp/agent.png') no-repeat top left / 100% 100%;
    // background-size: cover;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    .logoMax {
        width: 140px;
    }
    .titImg{
        width: 150px;
        margin-top: 22px;
    }
    .btn {
        width: 223px;
        position: absolute;
        bottom: 110px;
        font-size: 18px;
        font-weight: 400;
        color: #a46100;
        opacity: 1;
        div {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}
.footer {
    height: 80px;
    background: #f8f9fd;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    color: #545454;
}
.l {
    // height: 40px;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
}
.center {
    border-bottom: 1px solid #66d6ff;
}
.footer .image {
    margin-right: 10px;
    height: 45px;
    border-radius: 10px;
    width: 45px;
}
.wx {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}
</style>
